package com.smart.manager.product.entities.models;

import com.smart.common.entities.core.BaseLongModel;
import com.smart.common.entities.domain.Address;
import com.smart.manager.product.entities.enums.PlaceStatus;
import io.ebean.annotation.DbJson;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * 游戏管理  场地资料
 * @author leo
 * @date 2023/09/05
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Accessors(chain = true)
@Table(name = "product_basic_place")
public class BasicPlace extends BaseLongModel {

    @ApiModelProperty("场地代码")
    private String code;

    @ApiModelProperty("场地名称")
    private String name;

    @ApiModelProperty("场地地址")
    @DbJson
    private Address address;

    @ApiModelProperty("场地描述")
    private String describe;

    @ApiModelProperty("场地状态")
    private PlaceStatus status;

    @ApiModelProperty("显示排序")
    private Integer sort;


}
